import type { Ref } from 'vue'

export type Pagination = {
  pageNum: number
  pageSize: number
  itemCount: number
  pageCount: number
}

export type CrudTable = {
  tableData: Ref<any[]>
  pagination: Pagination
  loading: Ref<boolean>
  handleSearch: () => Promise<TRecord<any> | string>
  handleReset: () => void
}
